package com.hbms.business.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hbms.business.mapper.HotelbmsOrdersMapper;
import com.hbms.business.domain.HotelbmsOrders;
import com.hbms.business.service.IHotelbmsOrdersService;

/**
 * 酒店订单Service业务层处理
 * 
 * @author zl
 * @date 2024-04-10
 */
@Service
public class HotelbmsOrdersServiceImpl implements IHotelbmsOrdersService 
{
    @Autowired
    private HotelbmsOrdersMapper hotelbmsOrdersMapper;

    /**
     * 查询酒店订单
     * 
     * @param orderId 酒店订单主键
     * @return 酒店订单
     */
    @Override
    public HotelbmsOrders selectHotelbmsOrdersByOrderId(Long orderId)
    {
        return hotelbmsOrdersMapper.selectHotelbmsOrdersByOrderId(orderId);
    }

    /**
     * 查询酒店订单列表
     * 
     * @param hotelbmsOrders 酒店订单
     * @return 酒店订单
     */
    @Override
    public List<HotelbmsOrders> selectHotelbmsOrdersList(HotelbmsOrders hotelbmsOrders)
    {
        return hotelbmsOrdersMapper.selectHotelbmsOrdersList(hotelbmsOrders);
    }

    /**
     * 新增酒店订单
     * 
     * @param hotelbmsOrders 酒店订单
     * @return 结果
     */
    @Override
    public int insertHotelbmsOrders(HotelbmsOrders hotelbmsOrders)
    {
        return hotelbmsOrdersMapper.insertHotelbmsOrders(hotelbmsOrders);
    }

    /**
     * 修改酒店订单
     * 
     * @param hotelbmsOrders 酒店订单
     * @return 结果
     */
    @Override
    public int updateHotelbmsOrders(HotelbmsOrders hotelbmsOrders)
    {
        return hotelbmsOrdersMapper.updateHotelbmsOrders(hotelbmsOrders);
    }

    /**
     * 批量删除酒店订单
     * 
     * @param orderIds 需要删除的酒店订单主键
     * @return 结果
     */
    @Override
    public int deleteHotelbmsOrdersByOrderIds(Long[] orderIds)
    {
        return hotelbmsOrdersMapper.deleteHotelbmsOrdersByOrderIds(orderIds);
    }

    /**
     * 删除酒店订单信息
     * 
     * @param orderId 酒店订单主键
     * @return 结果
     */
    @Override
    public int deleteHotelbmsOrdersByOrderId(Long orderId)
    {
        return hotelbmsOrdersMapper.deleteHotelbmsOrdersByOrderId(orderId);
    }
}
